package org.restbox.core.dao;

import java.io.Serializable;

/**
 * Generic definition of of a <tt>DAO</tt>
 *
 * @author troig
 */
public interface GenericDAO<T, K extends Serializable> {

   /**
    * Find entity <tt>T</tt> with the <tt>id</tt> passed by param.
    *
    * @param id Entity identifier
    * @return entity <tt><T/tt>
    */
   public T findByKey(K id);
}
